package com.luoye.lj.platform.dao;


import com.luoye.lj.platform.model.domain.RoleCollection;
import com.luoye.lj.platform.model.domain.RoleInfo;
import com.luoye.lj.platform.model.domain.RoleInfoSearch;
import com.luoye.lj.platform.model.domain.RoleSaveInfo;

import java.util.List;

/**
 * Created by wei on 2015/12/1.
 */
public interface IRoleServiceDao {
    //添加
    boolean addRole(RoleInfo role);
    //删除
    boolean delRole(long id);
    //修改
    boolean modifyRole(RoleSaveInfo role);
    //查询所有
    List<RoleInfo> getAll();
    //条件查询
    RoleCollection search(RoleInfoSearch search);
    //增加权限关联
    boolean addRra(RoleSaveInfo rolesave);
    //删除关联权限
    boolean delRra(long rid, long aid);
    boolean recover(long id);
    int getDelmark(long id);
    RoleInfo getRoleById(long id);
    RoleInfo getRoleByname(String description);
}
